/* --------------------------- PROTOTYPES ----------------------------------- */

static int getConf(int argc, char ** argv);
static void frecuencias(char * texto, int * letras, int step);
static int coincidenceIndex(char ** argv);
static int findkey(char ** argv, int len, int * key);
static void nextFr(float * fr);
static int rotarH(char * texto);
static int rotarV(char * texto, int * key, int len, char * rta);
static float calcularCI(char * texto1, char * texto2);
static int checkMethod(char * texto, char * rta, int * key, int len);
static void printKey(int key);
static char * decrypt(char ** argv);